package cn.likole.oj.bean;


import org.nutz.dao.entity.annotation.*;

@Table("family_link")
@PK({"familyId","userId"})
@TableIndexes({@Index(fields = "familyId", unique = false),@Index(fields = "userId",unique = false)})
public class Familylink {


    @Column
    private int familyId;

    @Column
    private int userId;

    @Column
    //true是队长发送的邀请,false是队员发送的请求"
    private boolean state;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public int getFamilyId() {
        return familyId;
    }

    public void setFamilyId(int familyId) {
        this.familyId = familyId;
    }
}
